package com.t.bricks.bussiness.db.entity.orders;

import java.util.List;

import com.t.bricks.bussiness.db.entity.orders.base.OrdersBase;
import com.t.bricks.bussiness.db.entity.orders.base.OrdersDetailBase;

/**
 * 订单'Orders'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class Orders extends OrdersBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 明细
	 */
	private List<OrdersDetailBase> details;

	/**
	 * 获得 明细
	 * @return details 明细
	 */
	public List<OrdersDetailBase> getDetails() {
		return details;
	}

	/**
	 * 设置 明细
	 * @param details 明细
	 */
	public void setDetails(List<OrdersDetailBase> details) {
		this.details = details;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return Orders
	 */
	public static Orders copy(Orders source) {
		if (null == source) {
			return null;
		}

		Orders target = new Orders();
		target.setsId(source.getsId());
		target.setsSequence(source.getsSequence());
		target.setsCustomerId(source.getsCustomerId());
		target.setsCustomerPhone(source.getsCustomerPhone());
		target.setsCustomerAddress(source.getsCustomerAddress());
		target.setmMoney(source.getmMoney());
		target.setmMoneyPay(source.getmMoneyPay());
		target.setmCouponPay(source.getmCouponPay());
		target.setiTallyPay(source.getiTallyPay());
		target.setiTallyLargess(source.getiTallyLargess());
		target.setmFreight(source.getmFreight());
		target.setiPay(source.getiPay());
		target.setdPay(source.getdPay());
		target.setdDelivery(source.getdDelivery());
		target.setsDelivery(source.getsDelivery());
		target.setsDeliveryman(source.getsDeliveryman());
		target.setsDeliveryNo(source.getsDeliveryNo());
		target.setsDelveryCode(source.getsDelveryCode());
		target.setdSignIn(source.getdSignIn());
		target.setsSignIn(source.getsSignIn());
		target.setdConfirm(source.getdConfirm());
		target.setsConfirm(source.getsConfirm());
		target.setdReturnApply(source.getdReturnApply());
		target.setsReturnApply(source.getsReturnApply());
		target.setsReceipt(source.getsReceipt());
		target.setsReceiptContent(source.getsReceiptContent());
		target.setsSalesmanId(source.getsSalesmanId());
		target.setsSalesman(source.getsSalesman());
		target.setdSalesDate(source.getdSalesDate());
		target.setsAuditId(source.getsAuditId());
		target.setsAudit(source.getsAudit());
		target.setdAuditDate(source.getdAuditDate());
		target.setsRecheckId(source.getsRecheckId());
		target.setsRecheck(source.getsRecheck());
		target.setdRecheckDate(source.getdRecheckDate());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return Orders
	 */
	@Override
	public Orders clone() {
		return copy(this);
	}
	
}
